moar vim tweaks as well as a couple of plugins
This commit is contained in:
		
							parent
							
								
									8736619822
								
							
						
					
					
						commit
						b8b1d2efc2
					
				
					 1 changed files with 17 additions and 16 deletions
				
			
		
							
								
								
									
										33
									
								
								vimrc
									
										
									
									
									
								
							
							
						
						
									
										33
									
								
								vimrc
									
										
									
									
									
								
							| 
						 | 
					@ -23,9 +23,9 @@ set tabstop=3 softtabstop=4 shiftwidth=4 smarttab expandtab
 | 
				
			||||||
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
 | 
					set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" 256 colours at almost all times; do I even need it?..
 | 
					" 256 colours at almost all times; do I even need it?..
 | 
				
			||||||
"if $TERM =~ '^[xterm|rxvt-unicode|screen|st]'
 | 
					if $TERM =~ '^[xterm|rxvt-unicode|screen|st]'
 | 
				
			||||||
"    let &t_Co=256
 | 
					    let &t_Co=256
 | 
				
			||||||
"endif
 | 
					endif
 | 
				
			||||||
if $LANG =~ '[UTF\-8|utf8]$'
 | 
					if $LANG =~ '[UTF\-8|utf8]$'
 | 
				
			||||||
    set termencoding=utf-8
 | 
					    set termencoding=utf-8
 | 
				
			||||||
    set encoding=utf-8
 | 
					    set encoding=utf-8
 | 
				
			||||||
| 
						 | 
					@ -94,7 +94,8 @@ if v:version >= 700
 | 
				
			||||||
        Plug 'vim-airline/vim-airline-themes'  "themes for airline
 | 
					        Plug 'vim-airline/vim-airline-themes'  "themes for airline
 | 
				
			||||||
        Plug 'vimwiki/vimwiki'                 "another attempt at doing notebook via vim
 | 
					        Plug 'vimwiki/vimwiki'                 "another attempt at doing notebook via vim
 | 
				
			||||||
        Plug 'neomake/neomake'                 "linter
 | 
					        Plug 'neomake/neomake'                 "linter
 | 
				
			||||||
        "Plug 'davidhalter/jedi-vim'            "python support
 | 
					        Plug 'davidhalter/jedi-vim'            "python support
 | 
				
			||||||
 | 
					        Plug 'ervandew/supertab'               "TAB autocompletion
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        " colorschemes
 | 
					        " colorschemes
 | 
				
			||||||
        Plug 'lifepillar/vim-solarized8'
 | 
					        Plug 'lifepillar/vim-solarized8'
 | 
				
			||||||
| 
						 | 
					@ -117,6 +118,7 @@ if v:version >= 700
 | 
				
			||||||
        let g:airline_symbols={}
 | 
					        let g:airline_symbols={}
 | 
				
			||||||
        let g:airline_symbols.whitespace='!'
 | 
					        let g:airline_symbols.whitespace='!'
 | 
				
			||||||
        let g:airline_powerline_fonts=1
 | 
					        let g:airline_powerline_fonts=1
 | 
				
			||||||
 | 
					        let g:airline_exclude_preview=1
 | 
				
			||||||
        let g:airline_extensions=['hunks']
 | 
					        let g:airline_extensions=['hunks']
 | 
				
			||||||
        let g:airline_section_z='%3p%% %{g:airline_symbols.linenr}%4l:%3v'
 | 
					        let g:airline_section_z='%3p%% %{g:airline_symbols.linenr}%4l:%3v'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -156,26 +158,25 @@ if v:version >= 700
 | 
				
			||||||
        set mouse=a
 | 
					        set mouse=a
 | 
				
			||||||
        set guifont=Fantasque\ Sans\ Mono\ 11
 | 
					        set guifont=Fantasque\ Sans\ Mono\ 11
 | 
				
			||||||
        set novb
 | 
					        set novb
 | 
				
			||||||
        set guicursor=a:hor1-Cursor/lCursor     "underline cursor by default
 | 
					        set guicursor=a:block                   "block cursor by default
 | 
				
			||||||
        set guicursor+=i:ver1-Cursor/lCursor    "vertical cursor for insert mode
 | 
					        set guicursor+=i:ver1-Cursor/lCursor    "i-beam for insert mode
 | 
				
			||||||
        set guicursor+=r:block                  "block for replace
 | 
					        set guicursor+=r:hor1-Cursor/lCursor    "underline for replace
 | 
				
			||||||
        set guicursor+=a:blinkon0               "and none of them should blink
 | 
					        set guicursor+=a:blinkon0               "and none of them should blink
 | 
				
			||||||
        set guiheadroom=0
 | 
					        set guiheadroom=0
 | 
				
			||||||
        colorscheme neodark
 | 
					        colorscheme neodark
 | 
				
			||||||
        map <S-Insert> <MiddleMouse>
 | 
					        map <S-Insert> <MiddleMouse>
 | 
				
			||||||
        map! <S-Insert> <MiddleMouse>
 | 
					        map! <S-Insert> <MiddleMouse>
 | 
				
			||||||
    " if I ever want to use termguicolors aka true color theme
 | 
					    elseif (has("nvim") || v:version >= 704) && $TERM != 'screen'
 | 
				
			||||||
    "elseif (has("nvim") || v:version >= 704) && $TERM != 'screen'
 | 
					 | 
				
			||||||
        " fix tmux and st
 | 
					        " fix tmux and st
 | 
				
			||||||
        "set t_8f=[38;2;%lu;%lu;%lum
 | 
					        set t_8f=[38;2;%lu;%lu;%lum
 | 
				
			||||||
        "set t_8b=[48;2;%lu;%lu;%lum
 | 
					        set t_8b=[48;2;%lu;%lu;%lum
 | 
				
			||||||
        "set termguicolors
 | 
					        set termguicolors
 | 
				
			||||||
        "colorscheme neodark
 | 
					        set mouse=a
 | 
				
			||||||
        "set mouse=
 | 
					        colorscheme neodark
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        "set background=dark
 | 
					        set bg=light
 | 
				
			||||||
        colorscheme solarized8_light
 | 
					 | 
				
			||||||
        set mouse=
 | 
					        set mouse=
 | 
				
			||||||
 | 
					        colorscheme solarized8_light
 | 
				
			||||||
    endif
 | 
					    endif
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    colorscheme default
 | 
					    colorscheme default
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue