Commit a4c0d9da authored by Murukesh Mohanan's avatar Murukesh Mohanan

Merge branch 'master' of git.cse.iitb.ac.in:murukesh/vimrc

parents ef140243 559d5ac1
YouCompleteMe @ 674db42e
Subproject commit d05bf551a677ac70d5b6de707a7174a97dccd4dd
Subproject commit 674db42eefd9b2ac9a3bea92e99acf53d4f95fcd
airline @ 9d1196f4
Subproject commit fb76dfbca1fbc4ae5a946835135cb32b72be6a66
Subproject commit 9d1196f40aac7bbef5cec0c9307e80e207a4dfca
syntastic @ d8af5028
Subproject commit d1a179d750bd1d136d7f38e69f2c5b8439886de7
Subproject commit d8af5028ecd541f721dab769479092b643f47a76
vim-go @ de369ba2
Subproject commit b85b550c6cf3c838db5990a3b202069964429f05
Subproject commit de369ba2a1ed2195c5a50dd3a396d3760050d171
vimtex @ 664b7259
Subproject commit 0212c94e31f953378092249bc791eaaa4c5ccb1a
Subproject commit 664b7259ce7b408e1b3affb93f307c0395eb8bbd
......@@ -53,6 +53,8 @@ set laststatus=2
set wildignore+=*.aux,*.toc,*.pdf
set isfname-==
set display+=lastline
set undofile
set undodir=$HOME/.vim/undo
let g:tex_flavor = "latex"
......@@ -99,8 +101,8 @@ highlight NonText ctermbg=none
highlight Visual ctermbg=DarkGrey
" From http://vi.stackexchange.com/questions/258/
autocmd BufWritePre *.sh if !filereadable(expand('%')) | let b:is_new = 1 | endif
autocmd BufWritePost *.sh if get(b:, 'is_new', 0) | silent execute '!chmod +x %' | endif
autocmd BufWritePre *.sh,*.py if !filereadable(expand('%')) | let b:is_new = 1 | endif
autocmd BufWritePost *.sh,*.py if get(b:, 'is_new', 0) | silent execute '!chmod +x %' | endif
let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabClosePreviewOnPopupClose = 1
......@@ -133,23 +135,6 @@ let g:DiffUpdate = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_collect_identifiers_from_tags_files = 1
" if has('cscope')
" set cscopetag cscopeverbose
"
" if has('quickfix')
" set cscopequickfix=s-,c-,d-,i-,t-,e-
" endif
"
" cnoreabbrev csa cs add
" cnoreabbrev csf cs find
" cnoreabbrev csk cs kill
" cnoreabbrev csr cs reset
" " cnoreabbrev css cs show
" cnoreabbrev csh cs help
"
" command -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src
" endif
if !empty($MAN_PN)
autocmd StdinReadPost * set ft=man | file $MAN_PN
elseif @% == "" && getcwd() == "/tmp"
......@@ -166,6 +151,7 @@ endif
function! FindInPath(name)
" Force creation of new file for paths beginning with ./
if expand('%') !~ '^[.~]\?/'
try
let path=&path
" Add any extra directories to the normal search path
set path+=~,~/.vim,/etc
......@@ -175,6 +161,9 @@ function! FindInPath(name)
" Restore 'path' and 'bufhidden' to their normal values
let &path=path
set bufhidden<
catch /^Vim\%((\a\+)\)\=:E345/
return 0
endtry
endif
endfunction
autocmd BufNewFile * nested call FindInPath(expand('<afile>'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment