syntax on filetype plugin indent on set ai set number set mouse=a "set breakindent set encoding=utf-8 "Added this for vim-hug set nu rnu set hidden set tabstop=4 set shiftwidth=4 runtime ftplugin/man.vim set keywordprg=:Man let mapleader = "s" set is "Colour settings set t_Co=256 "Use 256 colours (Use this setting only if your terminal supports 256 colours) set tgc "More terminal colours let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" let base16colorspace=256 colorscheme base16-ocean "colorscheme Tomorrow-Night "Pymode stuff let g:pymode_folding = 0 "Easymotion prefix map (easymotion-prefix) " turn hybrid line numbers off ":set nonumber norelativenumber ":set nonu nornu " toggle hybrid line numbers ":set number! relativenumber! ":set nu! rnu! "Triggers for number toggling :augroup numbertoggle : autocmd! : autocmd BufEnter,FocusGained,InsertLeave * set relativenumber : autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber :augroup END "CtrlP bindings nmap d :CtrlPBuffer nmap a :CtrlPMRU nmap l :CtrlPLine "NERDTree bingings nnoremap :NERDTreeToggle nnoremap t :NERDTreeToggle nnoremap :NERDTreeFocus "autocmd vimenter * NERDTree "Buffergator bindings nmap [ :BuffergatorMruCyclePrev nmap ] :BuffergatorMruCycleNext nmap f :BuffergatorOpen let g:buffergator_autoexpand_on_split=0 "Stuff for faster movement and aesthetics :set cursorline nnoremap :tabprevious nnoremap :tabnext nnoremap :buffers:buffer noremap noremap noremap o ok nmap p noremap y w noremap h noremap l noremap j noremap k nnoremap z :wa nnoremap - :w set so=10 "Copy and pasting vmap "+y nmap "+p set guioptions-=m "menu bar set guioptions-=T "toolbar set guicursor+=a:blinkon0 "Remove weird blinking cursor "set guioptions-=r "scrollbar nmap T :vsplit :wincmd l :enew "nmap bq :bp bd # nmap :ob :OpenBookmark let g:deoplete#enable_at_startup = 1 "Enables deoplete autocmd FileType python setlocal completeopt-=preview "Romoves docwindow for Jedi-vim "Omnisharp taken from the ReadMe I think let g:OmniSharp_timeout = 5 set completeopt=longest,menuone,preview set previewheight=5 let g:ale_linters = { 'cs': ['OmniSharp'] } let g:OmniSharp_highlight_types = 1 augroup omnisharp_commands autocmd! " air-line let g:airline_theme='tomorrow' let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#tab_nr_type = 1 let g:airline#extensions#tabline#show_tab_nr = 1 let g:airline#extensions#tabline#buffer_nr_show = 1 let g:airline#extensions#tabline#formatter = 'default' let g:airline#extensions#tabline#buffer_nr_show = 1 let g:airline#extensions#tabline#fnametruncate = 16 let g:airline#extensions#tabline#fnamecollapse = 2 "let mapleader="," let g:airline#extensions#tabline#buffer_idx_mode = 1 nmap ,1 AirlineSelectTab1 nmap ,2 AirlineSelectTab2 nmap ,3 AirlineSelectTab3 nmap ,4 AirlineSelectTab4 nmap ,5 AirlineSelectTab5 nmap ,6 AirlineSelectTab6 nmap ,7 AirlineSelectTab7 nmap ,8 AirlineSelectTab8 nmap ,9 AirlineSelectTab9 let g:airline_powerline_fonts = 1 if !exists('g:airline_symbols') let g:airline_symbols = {} endif " unicode symbols let g:airline_left_sep = '»' let g:airline_left_sep = '▶' let g:airline_right_sep = '«' let g:airline_right_sep = '◀' let g:airline_symbols.linenr = '␊' let g:airline_symbols.linenr = '␤' let g:airline_symbols.linenr = '¶' let g:airline_symbols.branch = '⎇' let g:airline_symbols.paste = 'ρ' let g:airline_symbols.paste = 'Þ' let g:airline_symbols.paste = '∥' let g:airline_symbols.whitespace = 'Ξ' " airline symbols let g:airline_left_sep = '' let g:airline_left_alt_sep = '' let g:airline_right_sep = '' let g:airline_right_alt_sep = '' let g:airline_symbols.branch = '' let g:airline_symbols.readonly = '' let g:airline_symbols.linenr = '' "Folding nnoremap 6 :setlocal fdm=indent nnoremap 7 :setlocal fdm=marker nnoremap 8 :setlocal fdm=expr:set foldexpr=getline(v:lnum)=~'^\\s*$'&&getline(v:lnum+1)=~'\\S'?'<1':1 set foldmethod=indent set foldlevelstart=1 autocmd FileType vim setlocal foldmethod=marker autocmd FileType '' setlocal fdm=expr foldexpr=getline(v:lnum)=~'^\\s*$'&&getline(v:lnum+1)=~'\\S'?'<1':1 let javaScript_fold=1 " JavaScript let perl_fold=1 " Perl let php_folding=1 " PHP let r_syntax_folding=1 " R let ruby_fold=1 " Ruby let sh_fold_enabled=1 " sh let vimsyn_folding='af' " Vim script let xml_syntax_folding=1 " XML "ctrlp and buffgator custom stuff let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/](\.(git|hg|svn)|\_site)$', \ 'file': '\v\.(exe|so|dll|class|png|jpg|jpeg)$', \} let g:ctrlp_working_path_mode = 'r' " Use the nearest .git directory as the cwd let g:buffergator_viewport_split_policy = 'R' " Use the right side of the screen let g:buffergator_suppress_keymaps = 1 " I want my own keymappings...