2d94f9f72d7982876a4f856464f7c6249de9aa68
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.
dblume .vimrc needs explicit "noru...

dblume authored 11 months ago

18) set noruler         " Don't show cursor pos on right side of status bar
David Blume first commit

David Blume authored 9 years ago

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

David Blume authored 6 years ago

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

dblume authored 2 years ago

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

David Blume authored 6 years ago

40) 
dblume Add easier window navigation.

dblume authored 2 years ago

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

David Blume authored 6 years ago

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

David Blume authored 9 years ago

50) 
dblume tab key navigation of buffers

dblume authored 2 years ago

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

dblume authored 1 year ago

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

David Blume authored 9 years ago

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

dblume authored 1 year ago

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

David Blume authored 4 years ago

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

David Blume authored 9 years ago

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

David Blume authored 6 years ago

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

David Blume authored 9 years ago

84)   endif
dblume Make the normal statusbar m...

dblume authored 11 months ago

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

dblume authored 11 months ago

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

dblume authored 2 years ago

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

David Blume authored 9 years ago

88) endif
dblume Better statusline color.

dblume authored 2 years ago

89) 
dblume Vim insert mode's blue shou...

dblume authored 11 months ago

90) au InsertEnter * hi statusline guibg=Cyan ctermfg=25 guifg=Black ctermbg=248
dblume Make the normal statusbar m...

dblume authored 11 months ago

91) au InsertLeave * hi statusline term=bold,reverse cterm=bold,reverse ctermfg=23 ctermbg=250 guifg=black guibg=#c2bfa5
dblume Maybe I like these statusli...

dblume authored 1 year ago

92) 
David Blume first commit

David Blume authored 9 years ago

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

dblume authored 11 months ago

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

dblume authored 1 year ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

101)   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

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

dblume authored 1 year ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 11 months ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 1 year ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

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

David Blume authored 9 years ago

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

dblume authored 2 years ago

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

David Blume authored 9 years ago

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

dblume authored 2 years ago

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

David Blume authored 9 years ago

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

dblume authored 2 years ago

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

dblume authored 3 years ago

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

dblume authored 3 years ago

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

dblume authored 3 years ago

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

dblume authored 3 years ago

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

dblume authored 3 years ago

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

David Blume authored 9 years ago

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

David Blume authored 6 years ago

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

David Blume authored 3 years ago

199) " Make netrw's Explore behave a little like NERDTreeToggle
200) " 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

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

David Blume authored 3 years ago

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

David Blume authored 3 years ago

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

David Blume authored 3 years ago

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

David Blume authored 3 years ago

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

David Blume authored 4 years ago

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

dblume authored 2 years ago

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

David Blume authored 9 years ago

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

David Blume authored 6 years ago

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

David Blume authored 9 years ago

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

David Blume authored 8 years ago

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

dblume authored 3 years ago

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

David Blume authored 8 years ago

294) 
David Blume first commit

David Blume authored 9 years ago

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

dblume authored 1 year ago

299)   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

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

David Blume authored 8 years ago

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

dblume authored 2 years ago

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

David Blume authored 9 years ago

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

David Blume authored 6 years ago

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

David Blume authored 9 years ago

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

dblume authored 11 months ago

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

David Blume authored 9 years ago

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

dblume authored 2 years ago

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

dblume authored 2 years ago

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

David Blume authored 9 years ago

322) 
dblume Always start on first line...

dblume authored 11 months ago

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

David Blume authored 9 years ago

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

dblume authored 11 months ago

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

David Blume authored 9 years ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

330) 
dblume Only show encoding and form...

dblume authored 11 months ago

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

David Blume authored 9 years ago

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

dblume authored 2 years ago

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

David Blume authored 7 years ago

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

David Blume authored 7 years ago

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

dblume authored 3 years ago

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

David Blume authored 3 years ago

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

David Blume authored 7 years ago

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

David Blume authored 3 years ago

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

dblume authored 3 years ago

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

dblume authored 3 years ago

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

dblume authored 2 years ago

379)     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

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

David Blume authored 3 years ago

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

dblume authored 2 years ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

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

dblume authored 11 months ago

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

David Blume authored 6 years ago

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

David Blume authored 6 years ago

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

David Blume authored 6 years ago

408) " Cygwin64 won't let you choose it. Launch Cygwin64 as follows:
409) " 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

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

David Blume authored 4 years ago

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

David Blume authored 3 years ago

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

David Blume authored 4 years ago

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

David Blume authored 3 years ago

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

David Blume authored 4 years ago

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

David Blume authored 6 years ago

421) 
dblume Added vim-rooter.

dblume authored 2 years ago

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

dblume authored 2 years ago

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