diff --git a/init.vim b/init.vim index b5eb842..7f98917 100644 --- a/init.vim +++ b/init.vim @@ -9,6 +9,7 @@ Plug 'tpope/vim-fugitive' Plug 'airblade/vim-gitgutter' Plug 'Shougo/neosnippet.vim' Plug 'honza/vim-snippets' +Plug 'vim-scripts/a.vim' call plug#end() " =============Settings================== filetype plugin on @@ -76,3 +77,14 @@ let g:neosnippet#enable_snipmate_compatibility = 1 let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets' imap neosnippet#expandable_or_jumpable() ? "\(neosnippet_expand_or_jump)" : pumvisible() ? "\" : "\" smap neosnippet#expandable_or_jumpable() ? "\(neosnippet_expand_or_jump)" : "\" +" =====================A====================== +" Function for switching between header and c* files +map :wa :A +imap :wa:Ai +map :AV +imap :AVi +map :AT +imap :ATi +let g:alternateSearchPath = 'sfr:../source,sfr:../src,sfr:../include,../../include,sfr:../inc,sfr:../h' +" Dont create the file if the .cpp or .h is not found +let g:alternateNoDefaultAlternate = 1