028880fb6e61d6fdc78ea24f6949c897e06ce3a0
dblume Soften the status line colo...

dblume authored 11 months ago

1) " Version 2024-03-17.1 - status line color tweak
David Blume first commit

David Blume authored 9 years ago

2) set nocompatible    " Use Vim defaults, forget compatibility with vi.
3) set bs=2            " allow backspacing over everything in insert mode
4) set wildmenu        " Allows command-line completion with tab
5) set autoindent      " Copy indent from current line when starting a new line
6) set smartindent     " Do smart auto indenting when starting  new line
7) set smarttab        " Honor 'shiftwidth', 'tabstop' or 'softtabstop'
8) set hlsearch        " highlight all matches for previous search
dblume Better fold settings for zA

dblume authored 2 years ago

9) set foldlevel=99
David Blume first commit

David Blume authored 9 years ago

10) set nowrap          " no wrapping text lines on the screen (exceptions below)
11) set sidescroll=5
dblume May use nbsp in PS1; add it...

dblume authored 2 years ago

12) set listchars+=tab:>-,precedes:<,extends:>,nbsp:· " for :set list
dblume Add - as a word character

dblume authored 1 year ago

13) set iskeyword+=-    " Add - to list of non-word-breaking chars.
dblume Starting trial with vim 'in...

dblume authored 1 year ago

14) set incsearch       " Navigate to matched strings while typing. Toggle: :set is!
dblume Set scrolloff to 0, EC2 def...

dblume authored 1 year ago

15) set scrolloff=0     " EC2 defaults to 5. Set explicitly to be consistent
dblume Vim to delete comment char...

dblume authored 11 months ago

16) set formatoptions+=j " Delete comment character when joining commented lines.
dblume Improve Esc key reaction, f...

dblume authored 11 months ago

17) set ttimeoutlen=100 " Affects Esc key, not leader.
David Blume first commit

David Blume authored 9 years ago

18) 
19) if v:version >= 703
20)   " Do save the undo tree to file, but not in the local directory.
21)   " Don't forget to mkdir ~/.vim_undo
22)   set undodir=~/.vim_undo,.
23)   set undofile        " undo even after closing and reopening a file
24) endif
25) 
26) " The following two lines set the use of perl regex, aka "very magic"
27) nnoremap / /\v
28) vnoremap / /\v
29) 
David Blume vimrc key remappings. jk as...

David Blume authored 6 years ago

30) " Make j and k move to the next row, not file line
31) nnoremap j gj
32) nnoremap k gk
33) 
34) " From Steve Losh: http://learnvimscriptthehardway.stevelosh.com/chapters/10.html
dblume Use j and k for navigating...

dblume authored 2 years ago

35) " Map jk to ESC in insert mode (except when navigating popup menu)
36) inoremap <expr> jk pumvisible() ? '' : '<esc>'
37) inoremap <expr> j pumvisible() ? '<Down>' : 'j'
38) inoremap <expr> k pumvisible() ? '<Up>' : 'k'
David Blume vimrc key remappings. jk as...

David Blume authored 6 years ago

39) 
dblume Add easier window navigation.

dblume authored 2 years ago

40) " https://stevelosh.com/blog/2010/09/coming-home-to-vim/#s3-why-i-came-back-to-vim
41) nnoremap <leader>v <C-w>v<C-w>l
42) nnoremap <C-h> <C-w>h
43) nnoremap <C-j> <C-w>j
44) nnoremap <C-k> <C-w>k
45) nnoremap <C-l> <C-w>l
46) 
David Blume vimrc key remappings. jk as...

David Blume authored 6 years ago

47) " clear search highlights
48) nnoremap <cr> :noh<cr><cr>
David Blume first commit

David Blume authored 9 years ago

49) 
dblume tab key navigation of buffers

dblume authored 2 years ago

50) " tab switches to previous/next buffer
51) nnoremap <Tab> :bp<cr>
52) nnoremap <S-Tab> :bn<cr>
53) 
dblume Remap Y to yank to end of l...

dblume authored 1 year ago

54) " Use yy to yank a whole line, use Y to yank to end of line like C and D
55) nnoremap Y y$
56) 
David Blume first commit

David Blume authored 9 years ago

57) syntax on
58) 
59) set t_Co=256
60) if v:version >= 703
61)   set colorcolumn=80
62) endif
63) if has('gui_running') " Didn't work: if &term != 'builtin_gui'
64)   " Light backgrounds for GUI experiences
65)   set background=light
66)   " colorscheme peaksea                        " install peaksea
67)   colorscheme tolerable                        " install tolerable
68)   if v:version >= 703
69)     highlight ColorColumn ctermbg=255 guibg=#F6F6F6
70)   endif
dblume nvim ColorColumn was inverted

dblume authored 1 year ago

71)   highlight statusline   ctermfg=17 ctermbg=Gray  " override scheme
72)   highlight statuslineNC ctermfg=20 ctermbg=LightGray  " override scheme
David Blume Specify a font for gvim on...

David Blume authored 4 years ago

73)   if has('win32')
74)     set guifont=DejaVu_Sans_Mono_for_Powerline:h10:cANSI:qDRAFT
75)   endif
David Blume first commit

David Blume authored 9 years ago

76)   set lines=50 columns=100
77) else
78)   " Dark backgrounds for tty experiences
79)   set background=dark
80)   colorscheme desert                           " install desert
81)   if v:version >= 703
David Blume Windows PuTTY shows ctermbg...

David Blume authored 6 years ago

82)     highlight ColorColumn ctermbg=233 guibg=Black " dark gray (or 17, dark blue)
David Blume first commit

David Blume authored 9 years ago

83)   endif
dblume Maybe I like these statusli...

dblume authored 1 year ago

84)   highlight statusline   ctermfg=24 ctermbg=250  " override scheme
dblume Soften the status line colo...

dblume authored 11 months ago

85)   highlight statuslineNC ctermfg=237 ctermbg=Gray  " override scheme
dblume Better statusline color.

dblume authored 2 years ago

86)   highlight MatchParen   term=reverse ctermbg=23  " 23 is more subtle than default
David Blume first commit

David Blume authored 9 years ago

87) endif
dblume Better statusline color.

dblume authored 2 years ago

88) 
dblume Soften the status line colo...

dblume authored 11 months ago

89) au InsertEnter * hi statusline guibg=Cyan ctermfg=26 guifg=Black ctermbg=248
dblume Maybe I like these statusli...

dblume authored 1 year ago

90) au InsertLeave * hi statusline term=bold,reverse cterm=bold,reverse ctermfg=24 ctermbg=250 guifg=black guibg=#c2bfa5
91) 
David Blume first commit

David Blume authored 9 years ago

92) " set mouse=v     " visual mode, not working great for PuTTY
93) 
94) set tags=tags;/
95) 
dblume Make vim StatuslineGit() re...

dblume authored 11 months ago

96) set history=500
dblume Update vim statusline to pr...

dblume authored 1 year ago

97) set laststatus=2
98) 
dblume Retrieve git branch only on...

dblume authored 11 months ago

99) function! GitBranch()
dblume Make vim StatuslineGit() re...

dblume authored 11 months ago

100)   let l:branchname = system("git -C " . expand('%:p:h') . " rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
dblume Make git branch fit on stat...

dblume authored 11 months ago

101)   return strlen(l:branchname) > 0 ? '  │ '.l:branchname : ''
dblume Update vim statusline to pr...

dblume authored 1 year ago

102) endfunction
103) 
dblume Only show encoding and form...

dblume authored 11 months ago

104) function! EncodingAndFormat()
105)   if (len(&fileencoding) && &fileencoding != 'utf-8') || &fileformat != 'unix'
106)     return &fileencoding?&fileencoding:&encoding .'['. &fileformat . '] │ '
107)   endif
108)   return ''
109) endfunction
110) 
dblume Make "set ruler!" change st...

dblume authored 11 months ago

111) function! OnRuler()
112)   if &ruler
113)     return '│ '.line('.').':'.col('.').' '
114)   endif
115)   return ''
116) endfunction
117) 
dblume Default to mode() if not in...

dblume authored 1 year ago

118) function! Current_mode()
119)   let l:currentmode={
dblume Update vim statusline to pr...

dblume authored 1 year ago

120)     \ 'n'  : 'NORMAL',
121)     \ 'v'  : 'VISUAL',
122)     \ 'V'  : 'V·LINE',
123)     \ '' : 'V·BLOCK',
124)     \ 's'  : 'SELECT',
125)     \ 'S'  : 'S·LINE',
126)     \ 'i'  : 'INSERT',
dblume Default to mode() if not in...

dblume authored 1 year ago

127)     \ 'r'  : 'I·REPLACE',
dblume Update vim statusline to pr...

dblume authored 1 year ago

128)     \ 'R'  : 'REPLACE',
129)     \ 'Rv' : 'V·REPLACE',
130)     \ 'c'  : 'COMMAND',
131)     \}
dblume Default to mode() if not in...

dblume authored 1 year ago

132)     return get(l:currentmode, mode(), mode())
133) endfunction
dblume Update vim statusline to pr...

dblume authored 1 year ago

134) 
135) function! Trim_brackets(fn)
dblume Support older vim on raspi

dblume authored 1 year ago

136)   if v:version > 800
137)     return trim(a:fn, "[]")
138)   else
139)     return a:fn
140)   endif
dblume Update vim statusline to pr...

dblume authored 1 year ago

141) endfunction
142) 
dblume Default to mode() if not in...

dblume authored 1 year ago

143) set statusline=\ %{Current_mode()}
dblume Update vim statusline to pr...

dblume authored 1 year ago

144) set statusline+=%{&paste?'\ \ ·\ PASTE':''}
dblume Retrieve git branch only on...

dblume authored 11 months ago

145) set statusline+=%{b:git_branch}
dblume vimrc use box drawing vertical

dblume authored 1 year ago

146) set statusline+=\ │\ %f
dblume Default to mode() if not in...

dblume authored 1 year ago

147) set statusline+=%m
148) set statusline+=\ %r
149) set statusline+=\ %=
dblume Update vim statusline to pr...

dblume authored 1 year ago

150) set statusline+=%h
dblume Default to mode() if not in...

dblume authored 1 year ago

151) set statusline+=\ %{Trim_brackets(&filetype)}
152) set statusline+=\ %#StatusLineNC#
dblume Only show encoding and form...

dblume authored 11 months ago

153) set statusline+=\ %{b:enc_fmt}
154) set statusline+=%p%%\ of
dblume Drop column and line number...

dblume authored 11 months ago

155) set statusline+=\ %L\ 
dblume Make "set ruler!" change st...

dblume authored 11 months ago

156) set statusline+=%{OnRuler()}
David Blume first commit

David Blume authored 9 years ago

157) 
158) set encoding=utf-8
159) 
dblume No comments after key mappi...

dblume authored 2 years ago

160) " Fast saving
161) nmap <leader>w :w!<cr>
David Blume first commit

David Blume authored 9 years ago

162) " I use relative number for cursor movement.
163) nmap <leader>r :set relativenumber!<cr>
164) nmap <leader>n :set number!<cr>
165) 
166) " Useful mappings for managing tabs
dblume Remove bad vim mappings for...

dblume authored 2 years ago

167) " Tab Previous: gT or C-PageUp
168) " Tab Next: gt or C-PageDown
David Blume first commit

David Blume authored 9 years ago

169) nmap <leader>tn :tabnew
170) nmap <leader>to :tabonly<cr>
171) nmap <leader>tc :tabclose<cr>
172) nmap <leader>tm :tabmove
dblume Add shortcuts for tab selec...

dblume authored 2 years ago

173) nmap <leader>1 1gt
174) nmap <leader>2 2gt
175) nmap <leader>3 3gt
176) nmap <leader>4 4gt
177) nmap <leader>5 5gt
178) nmap <leader>6 6gt
179) nmap <leader>7 7gt
180) nmap <leader>8 8gt
181) nmap <leader>9 9gt
dblume Use <leader>o OpenCurrentAs...

dblume authored 3 years ago

182) 
183) " Open current buffer in new tab. Close with C-w,c
184) " https://vim.fandom.com/wiki/Maximize_window_and_return_to_previous_split_structure
185) function! OpenCurrentAsNewTab()
dblume Restore entire window view...

dblume authored 3 years ago

186)     let l:currentView = winsaveview()
dblume Use <leader>o OpenCurrentAs...

dblume authored 3 years ago

187)     tabedit %
dblume Restore entire window view...

dblume authored 3 years ago

188)     call winrestview(l:currentView)
dblume Use <leader>o OpenCurrentAs...

dblume authored 3 years ago

189) endfunction
190) nmap <leader>o :call OpenCurrentAsNewTab()<CR>
David Blume first commit

David Blume authored 9 years ago

191) 
192) " pastetoggle
193) nmap <leader>p :set invpaste paste?<cr>
194) 
David Blume Add mapping to paste onto n...

David Blume authored 6 years ago

195) " Control+p to paste onto next line
196) nmap <C-p> :pu<cr>
197) 
David Blume Will use netrw's Explore in...

David Blume authored 3 years ago

198) " Make netrw's Explore behave a little like NERDTreeToggle
199) " http://vimcasts.org/blog/2013/01/oil-and-vinegar-split-windows-and-project-drawer/
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

200) function! ToggleNetrw()
David Blume Improve the toggling of the...

David Blume authored 3 years ago

201)   if bufwinnr("NetrwTreeListing") > 0
202)     for i in range(1, bufnr("$"))
203)       if (getbufvar(i, "&filetype") == "netrw")
David Blume Use netrw Vexplore to assur...

David Blume authored 3 years ago

204)         silent exe "bwipeout " . i
David Blume Improve the toggling of the...

David Blume authored 3 years ago

205)         return
206)       endif
207)     endfor
208)   endif
David Blume Use netrw Vexplore to assur...

David Blume authored 3 years ago

209)   silent Vexplore %:p:h
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

210) endfunction
211) nmap <leader>e :call ToggleNetrw()<cr>
212) 
dblume No comments after key mappi...

dblume authored 2 years ago

213) " install taglist
214) let Tlist_GainFocus_On_ToggleOpen = 1  " Jump to taglist window on open
215) let Tlist_Exit_OnlyWindow = 1          " if you are the last, kill yourself
216) let Tlist_Close_On_Select = 1          " Close taglist window on select
217) nmap <leader>l :TlistToggle<cr>
218) 
219) " install vim-bbye
220) nmap <leader>bd :Bdelete<cr>
David Blume first commit

David Blume authored 9 years ago

221) 
222) " Visual mode mappings
223) """
224) 
225) " map sort function to a key
226) vnoremap <leader>s :sort<cr>
227) 
228) "easier moving of code blocks
David Blume vimrc key remappings. jk as...

David Blume authored 6 years ago

229) vnoremap < <gv
230) vnoremap > >gv
David Blume first commit

David Blume authored 9 years ago

231) 
232) " If too many file system events are getting triggered.
233) set nobackup       " ~ files
234) set nowritebackup  " Don't write buff to temp, delete orig, rename temp to orig
235) set noswapfile     " .swp files
236) 
237) " Allow tags to open another buffer even if this one is modified
238) set hidden
239) 
240) " Switch between source and header files
241) function! SwitchSourceHeader()
242)   let s:ext  = expand("%:e")
243)   let s:base = expand("%:t:r")
244)   let s:cmd  = "find " . s:base
245)   if (s:ext == "cpp" || s:ext == "c")
246)     if findfile(s:base . ".h"  ) != "" | exe s:cmd . ".h"   | return | en
247)     if findfile(s:base . ".hpp") != "" | exe s:cmd . ".hpp" | return | en
248)   else
249)     if findfile(s:base . ".cpp") != "" | exe s:cmd . ".cpp" | return | en
250)     if findfile(s:base . ".c"  ) != "" | exe s:cmd . ".c"   | return | en
251)   endif
252) endfunc
253) 
254) " Demonstrates a way to look in a mirror directory
255) " function! OpenOther()
256) "    if expand("%:e") == "cpp"
257) "      exe "split" fnameescape(expand("%:p:r:s?src?include?").".h")
258) "    elseif expand("%:e") == "h"
259) "      exe "split" fnameescape(expand("%:p:r:s?include?src?").".cpp")
260) "    endif
261) " endfunc
262) 
263) " Delete trailing white space on save, useful for Python and CoffeeScript ;)
264) function! DeleteTrailingWS()
265)   exe "normal mz"
266)   %s/\s\+$//ge
267)   exe "normal `z"
268) endfunc
269) 
David Blume Add OpenInOtherWindow to .v...

David Blume authored 8 years ago

270) function! OpenInOtherWindow()
271)   if winnr('$') == 1
272)     exe "wincmd F"
273)   else
274)     let curNum = winnr()
275)     let oldBuf = bufnr( "%" )
276)     if curNum == 1
277)       let othNum = 2
278)     else
279)       let othNum = 1
280)     endif
281)     exe "normal! gF"
282)     let newBuf = bufnr( "%" )
283)     let newLine = line(".")
284)     exe 'hide buf' oldBuf
285)     exe othNum . "wincmd w"
286)     exe 'hide buf' newBuf
287)     exe "normal! " . newLine . "G"
288)   endif
289) endfunc
290) 
291) nmap <silent> <leader>F :call OpenInOtherWindow()<cr>
dblume Make OpenInOtherWindow easier.

dblume authored 3 years ago

292) nmap <silent> <leader>f :call OpenInOtherWindow()<cr>
David Blume Add OpenInOtherWindow to .v...

David Blume authored 8 years ago

293) 
David Blume first commit

David Blume authored 9 years ago

294) if has("autocmd")
295)   autocmd BufWrite *.py :call DeleteTrailingWS()  " Delete trailing whitespace
296)   " Don't let smartindent unindent the # character in Python files
297)   autocmd FileType python  inoremap # X<c-h>#
dblume expand tabs for Python

dblume authored 1 year ago

298)   autocmd FileType python,c,cpp,php,brs,sh  set expandtab  " Use spaces instead of tabs
David Blume first commit

David Blume authored 9 years ago

299)   autocmd Filetype make    setl noexpandtab       " ...not for files that use tabs.
300) 
301)   " Use the vim command %retab before applying the following
302)   " two with files that have 8-space tabs.
David Blume Add .vimrc tab values for ....

David Blume authored 8 years ago

303)   autocmd FileType c,cpp,python,php  set tabstop=4
dblume Remove some lines, allow mo...

dblume authored 2 years ago

304)   autocmd FileType c,cpp,php  set shiftwidth=4
David Blume first commit

David Blume authored 9 years ago

305) 
306)   autocmd FileType python  set foldmethod=indent  " 'za' to fold
307) 
David Blume Disable vim-airline whitesp...

David Blume authored 6 years ago

308)   autocmd FileType c,cpp nmap <buffer> <leader>s :call SwitchSourceHeader()<cr>
David Blume first commit

David Blume authored 9 years ago

309)   autocmd FileType c,cpp set foldmethod=syntax
310) 
dblume Improve focus-based switchi...

dblume authored 11 months ago

311) " https://jeffkreeftmeijer.com/vim-number/
312) augroup numbertoggle
313)   autocmd!
314)   autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu   | endif
315)   autocmd BufLeave,FocusLost,InsertEnter,WinLeave   * if &nu                  | set nornu | endif
316) augroup END
David Blume first commit

David Blume authored 9 years ago

317) 
dblume Remove some lines, allow mo...

dblume authored 2 years ago

318)   autocmd BufRead *.txt set wrap linebreak   " "soft" wrap of existing lines
319)   autocmd BufRead README set wrap linebreak  " "soft" wrap of existing lines
dblume Add .local/bin to $PATH

dblume authored 2 years ago

320)   autocmd BufRead *.rs :setlocal tags=./rusty-tags.vi;/
David Blume first commit

David Blume authored 9 years ago

321) 
dblume Always start on first line...

dblume authored 11 months ago

322)   " When editing a file, always jump to the last cursor position...
David Blume first commit

David Blume authored 9 years ago

323)   autocmd BufReadPost *
dblume Improve Esc key reaction, f...

dblume authored 11 months ago

324)   \ if &ft != "gitcommit" && line("'\"") > 0 && line ("'\"") <= line("$") |
David Blume first commit

David Blume authored 9 years ago

325)   \   exe "normal! g'\"" |
326)   \ endif
dblume Improve Esc key reaction, f...

dblume authored 11 months ago

327)   " ...except for gitcommit where we always want to start at the top (nvim)
dblume Always start on first line...

dblume authored 11 months ago

328)   autocmd FileType gitcommit exe "normal! gg"
dblume Retrieve git branch only on...

dblume authored 11 months ago

329) 
dblume Only show encoding and form...

dblume authored 11 months ago

330)   autocmd BufNewFile,BufReadPost *
331)   \ let b:git_branch = GitBranch() |
332)   \ let b:enc_fmt = EncodingAndFormat()
333)   autocmd BufEnter *
334)   \ let b:git_branch = GitBranch() |
335)   \ let b:enc_fmt = EncodingAndFormat()
David Blume first commit

David Blume authored 9 years ago

336) endif
337) 
338) " This requires vim to be compiled with +python
339) " Use auto complete in insert mode with ctrl-x, ctrl-o
340) " See :help new-omni-completion for more.
341) filetype plugin on
342) set omnifunc=syntaxcomplete#Complete
dblume Completion tweaks

dblume authored 2 years ago

343) 
344) " Torn on whether I like the omni completion preview window left open or not.
345) " autocmd CompleteDone * pclose
346) 
347) " Omni completion via ctrl-space (in addition to ctrl-x ctrl-o)
348) inoremap <Nul> <C-x><C-o>
349) 
David Blume Add cscope support

David Blume authored 7 years ago

350) " cscope
351) if has("cscope")
352)     set cscopetag  " Use both cscope and ctag for 'ctrl-]'
David Blume I prefer ctags to be search...

David Blume authored 7 years ago

353)     set csto=1     " 0=cscope first; 1=ctags first
dblume Use QuickFix for cscope.

dblume authored 3 years ago

354)     set cscopequickfix=s-,c-,d-,i-,t-,e-,a- " cscope to quickfix window
355) 
David Blume Use local cscope.out databa...

David Blume authored 3 years ago

356)     set nocsverb
357)     " add any database in current directory
358)     if filereadable("cscope.out")
359)         cs add cscope.out
360)     " else add database pointed to by environment
361)     elseif $CSCOPE_DB != ""
362)         cs add $CSCOPE_DB
363)     endif
364)     set csverb
David Blume Add cscope support

David Blume authored 7 years ago

365) endif
366) 
David Blume Sort QuickFix tool by filen...

David Blume authored 3 years ago

367) " From https://stackoverflow.com/questions/15393301/how-to-automatically-sort-quickfix-entries-by-line-text-in-vim
368) " :grep term %
369) " :grep -r term path/
370) " :cw
371) " :ccl (or C-w,q)
dblume QuickFix window: only sort...

dblume authored 3 years ago

372) autocmd! QuickfixCmdPost * call MaybeSortQuickfix('QfStrCmp')
373) 
374) function! MaybeSortQuickfix(fn)
375) "    exe 'normal! '  " Doesn't work. Wanted to jump back to where we were.
376)     let t = getqflist({'title': 1}).title
dblume QuickFix sorts for 'vimgrep...

dblume authored 3 years ago

377)     " Only sort the files if for search-style commands, not "make".
dblume Follow up integrate ripgrep...

dblume authored 2 years ago

378)     if stridx(t, "cs ") == 0 || stridx(t, ":gr") == 0 || stridx(t, ":vim") == 0 || stridx(t, ":rg") == 0
dblume QuickFix window: only sort...

dblume authored 3 years ago

379)         call setqflist(sort(getqflist(), a:fn), 'r')
380)         call setqflist([], 'r', {'title': t})
381)     endif
382)     cwindow
David Blume Sort QuickFix tool by filen...

David Blume authored 3 years ago

383) endfunction
384) 
385) function! QfStrCmp(e1, e2)
386)     let [t1, t2] = [bufname(a:e1.bufnr), bufname(a:e2.bufnr)]
387)     return t1 <# t2 ? -1 : t1 ==# t2 ? 0 : 1
388) endfunction
389) 
dblume Integrate ripgrep into vim.

dblume authored 2 years ago

390) " Use ripgrep for search instead of grep
391) if executable('rg')
392)     " set grepprg=rg\ --vimgrep\ --hidden\ —glob '!.git'
393)     set grepprg=rg
394) endif
395) " Navigate quickfix list with ease
396) nnoremap <silent> [q :cprevious<CR>
397) nnoremap <silent> ]q :cnext<CR>
398) 
dblume Add DiffOrig from the vim h...

dblume authored 11 months ago

399) " From `:help :DiffOrig`.
dblume Make "set ruler!" change st...

dblume authored 11 months ago

400) if exists(":DiffOrig") != 2
401)   command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_
dblume Add DiffOrig from the vim h...

dblume authored 11 months ago

402)     \ | diffthis | wincmd p | diffthis
dblume Make "set ruler!" change st...

dblume authored 11 months ago

403) endif
dblume Add DiffOrig from the vim h...

dblume authored 11 months ago

404) 
David Blume Add tip for using Roboto Mo...

David Blume authored 6 years ago

405) " I use Roboto Mono from https://github.com/powerline/fonts
David Blume Change from vim-powerline t...

David Blume authored 6 years ago

406) " On iTerm2, Preferences -> Profiles -> Text -> Font
David Blume Add tip for using Roboto Mo...

David Blume authored 6 years ago

407) " Cygwin64 won't let you choose it. Launch Cygwin64 as follows:
408) " C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -o Font="Roboto Mono for Powerline" -
David Blume Change from vim-powerline t...

David Blume authored 6 years ago

409) 
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

410) " Settings that make netrw more like NERDTree
411) let g:netrw_banner = 0
412) let g:netrw_liststyle = 3
David Blume Use netrw Vexplore to assur...

David Blume authored 3 years ago

413) let g:netrw_browse_split = 4
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

414) let g:netrw_altv = 1
David Blume Use netrw Vexplore to assur...

David Blume authored 3 years ago

415) " set g:netrw_winsize to negative for absolute width, positive for relative
416) let g:netrw_winsize = -36
417) " let g:netrw_winsize = 35
David Blume Remove NERDTree and use net...

David Blume authored 4 years ago

418) " sort is affecting only: directories on the top, files below
419) let g:netrw_sort_sequence = '[\/]$,*'
David Blume Change from vim-powerline t...

David Blume authored 6 years ago

420) 
dblume Added vim-rooter.

dblume authored 2 years ago

421) " Experimenting with vim-rooter
422) let g:rooter_patterns = ['.git', 'Makefile', 'builds/']
dblume Make vim-rooter manual.

dblume authored 2 years ago

423) let g:rooter_cd_cmd = 'lcd'
424) let g:rooter_manual_only = 1