-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc-mac
104 lines (73 loc) · 2.13 KB
/
.vimrc-mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
" Pathogen package manager -used for solarized
execute pathogen#infect()
call pathogen#helptags()
set nu
syntax on
set splitright
set splitbelow
filetype plugin on
filetype indent on
set expandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4
set smarttab
set smartindent
set autoindent
"set colorcolumn=80
"set tw=80
" enable spellchecking for latex files
" autocmd BufRead,BufNewFile *.tex setlocal spell spelllang=en_gb
" use Skim when opening file from LatexBox
let g:LatexBox_viewer = "open -a Skim.app"
let g:LatexBox_split_width = 45
let g:LatexBox_quickfix = 2
" map <localleader>
let maplocalleader = "\<Space>"
" map <localleader> + s to save+compile
autocmd FileType tex map <buffer> <Localleader>s :w<CR><Localleader>ll
" no search highlight
:set nohlsearch
" tab marker - good for python files
let g:tex_conceal = ""
let g:indentLine_char = '┆'
let g:indentLine_color_gui = '#444444'
let g:solarized_termcolors=16
set background=dark
" solarized options
" colorscheme solarized
set guifont=12
" Vim-Plug plugins
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-dispatch'
Plug 'Yggdroot/indentLine'
Plug 'LaTeX-Box-Team/LaTeX-Box'
"Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
call plug#end()
let g:airline_theme='solarized'
" Turn NERDTree On/Off - Ctrl+n
map <C-n> :NERDTreeToggle<CR>
" Mouse select copy on mac: press alt when selecting if it's just something
" short. also:
set mouse=a
" folding LatexDocuments - awesome!
" let g:LatexBox_Folding = 1
" spich panes with ctrl+[hjkl]
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
au BufNewFile,BufRead *.py
\ set fileformat=unix
" LSP autocompletion
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() : "\<cr>"