-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
65 lines (57 loc) · 1.6 KB
/
.vimrc
File metadata and controls
65 lines (57 loc) · 1.6 KB
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
execute pathogen#infect()
"Some basic setup.
set nocompatible
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set number
set relativenumber
set ignorecase
set smartcase
syntax on " Enable syntax highlighting
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
set omnifunc=syntaxcomplete#Complete
"Remapping pane switches for added smoothness
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>
" Forked tpozzi/Sidonia:
" github.com/jonathanprouse/Sidonia
colorscheme sidonia
" github.com/Townk/vim-autoclose
helptags ~/.vim/bundle/vim-autoclose/doc
" NERDtree
" github.com/scrooloose/nerdtree
helptags ~/.vim/bundle/nerdtree/doc
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p
" YouCompleteMe
" github.com/Valloric/YouCopmleteMe
let g:ycm_server_python_interpreter = '/usr/bin/python'
let g:loaded_youcompleteme = 1 " Disabled for now
" VimWiki
" github.com/vimwiki/vimwiki
" Set vfile to open link with vim
function! VimwikiLinkHandler(link)
" Use Vim to open external files with the 'vfile:' scheme. E.g.:
" 1) [[vfile:~/Code/PythonProject/abc123.py]]
" 2) [[vfile:./|Wiki Home]]
let link = a:link
if link =~# '^vfile:'
let link = link[1:]
else
return 0
endif
let link_infos = vimwiki#base#resolve_link(link)
if link_infos.filename == ''
echomsg 'Vimwiki Error: Unable to resolve link!'
return 0
else
exe 'tabnew ' . fnameescape(link_infos.filename)
return 1
endif
endfunction