]> gitweb.fluxo.info Git - rhatto/dotfiles/vim.git/commitdiff
Feat: additional folding markers
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 30 Jul 2024 04:06:32 +0000 (01:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 30 Jul 2024 04:06:32 +0000 (01:06 -0300)
gvimrc.dot.link
vim.dot.link/filetype.vim
vim.dot.link/plugin/auto_file.vim
vim.dot.link/plugin/key_mappings.vim
vim.dot.link/plugin/lib.vim
vim.dot.link/plugin/nerdtree_customizations.vim
vim.dot.link/plugin/session_workarounds.vim
vim.dot.link/plugin/ui.vim
vim.dot.link/plugin/window_title.vim
vimrc.dot.link

index c8044b211d7e2a663582f18f7f216a4d6800b51a..00733fc398afae895453b601fbd79db7b1702b4f 100644 (file)
@@ -1,36 +1,46 @@
-" GVIM Configuration
+" GVIM Configuration {{{
+
+" Basic {{{
 set background=light
 set mouse=a
 set guioptions-=m " remove menu bar
 set guioptions-=T " remove toolbar
+" }}}
 
-" GVIM IDE Configuration
+" GVIM IDE Configuration {{{
 set nocompatible " must be the first line
 filetype on
 filetype indent on
 filetype plugin on
 set laststatus=2
 set statusline=%<%f\%h%m%r%=%-20.(line=%l\ \ col=%c%V\ \ totlin=%L%)\ \ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P
+" }}}
 
-" Change to the current file's folder
+" Change to the current file's folder {{{
 map <leader>cd :cd %:p:h>cr<
+" }}}
 
-" Font configuration
+" Font configuration {{{
+"
 " Terminus is currently rendering slowly
 "set gfn=Terminus\ 8
 "set gfn=PowerlineFont\ 8
 set gfn=Monospace\ 8
+" }}}
 
-" 256 colors support
+" 256 colors support {{{
 set t_Co=256
+" }}}
 
-" Color scheme
+" Color scheme {{{
 "colorscheme solarized
 colorscheme xoria256
+" }}}
 
-" Powerline
+" Powerline {{{
 "set showtabline=1 " Do not display the tabline if there's just one tab
 "let g:Powerline_symbols='fancy'
 "python from powerline.vim import setup as powerline_setup
 "python powerline_setup()
 "python del powerline_setup
+" }}}
index e75d2e050c4a3d3ede824f972bd523bc868aab50..79e09ab1b1d2ddd563a79cdd3adea9abd3c3d090 100644 (file)
@@ -1,4 +1,4 @@
-" Vim support file to detect file types
+" Vim support file to detect file types {{{
 
 " Check if file type config is already loaded {{{
 if exists("did_load_filetypes")
index 72e782fd538bf1169f17b45075caa1684e5f889b..2d46efcb0aeeea3f6c942ac3e404ac6210a3c217 100644 (file)
@@ -1,4 +1,4 @@
-" auto_file.vim - Automatically file reading, saving; directory changer.
+" auto_file.vim - Automatically file reading, saving; directory change {{{
 
 " Autoread {{{
 "
index 0c8bfbad3803d8e0328662465fe914dda8073b8c..ceb1a51720ccd2bd441fa8550836eaae2adeaee8 100644 (file)
@@ -1,4 +1,4 @@
-" key_mappings.vim - Custom Key Mappings
+" key_mappings.vim - Custom Key Mappings {{{
 "
 " Author: Silvio Rhatto <rhatto@riseup.net>
 "
@@ -249,3 +249,4 @@ map <leader>e :put =strftime('## %Y-%m-%d')<CR>
 " Remove trailing whitespaces {{{
 noremap <leader>w :call TrimWhitespace()<CR>
 " }}}
+"
index 9e7b6894cd4443a62af39c97c2e79c408196aa7d..f1b2a3083eac4500df5b81eb5669b968297f8462 100644 (file)
@@ -1,9 +1,9 @@
-" lib.vim - Miscelaneous functions
+" lib.vim - Miscelaneous functions {{{
 "
 " Author: Silvio Rhatto <rhatto@riseup.net>
 "
 
-" Checkbox handling
+" Checkbox handling {{{
 "
 " This is commented out because vitalk/vim-simple-todo is being used instead.
 "
@@ -19,8 +19,9 @@
 "    call setline('.', substitute(line, '- ', '- \[ \] ', ''))
 "  endif
 "endf
+" }}}
 
-" Remove trailing spaces
+" Remove trailing spaces {{{
 "
 " Thanks https://vi.stackexchange.com/a/456
 fun! TrimWhitespace()
@@ -30,3 +31,4 @@ fun! TrimWhitespace()
 endfun
 
 command! TrimWhitespace call TrimWhitespace()
+" }}}
index f2e42ecf7fdc80aeab95c2dde3313fa45e3974fa..95b50f3b70725eb7cf0f115ac8d5062943981daf 100644 (file)
@@ -1,12 +1,15 @@
-" nedtree_customizations.vim - NERDTree customizations
+" nedtree_customizations.vim - NERDTree customizations {{{
 "
 " Initially adapted from
 " http://stackoverflow.com/questions/1447334/how-do-you-add-nerdtree-to-your-vimrc
 "
 " Author: Silvio Rhatto <rhatto@riseup.net>
 
+" Use the minimal UI {{{
 let NERDTreeMinimalUI=1
+" }}}
 
+" NERDTree autogroup {{{
 augroup nerdtree
   autocmd!
 
@@ -17,22 +20,29 @@ augroup nerdtree
   autocmd FileType nerdtree set relativenumber
   autocmd FileType taglist  set relativenumber
 augroup END
+" }}}
 
+" TabNew {{{
 function TabNew(address)
   execute ":tabnew"
   execute ":NERDTree " a:address
 endfunction
+" }}}
 
+" TabNewBookmark {{{
 function TabNewBookmark(bookmark)
   execute ":tabnew"
   execute ":NERDTreeFromBookmark " a:bookmark
 endfunction
+" }}}
 
+" OpenNERDTree {{{
 function OpenNERDTree()
   execute ":NERDTree"
 endfunction
+" }}}
 
-" Shortcuts
+" Shortcuts {{{
 cnoreabbrev t NERDTree
 cnoreabbrev b NERDTreeFromBookmark
 cnoreabbrev s OpenSession
@@ -41,3 +51,4 @@ cnoreabbrev ssave SaveSession
 command -nargs=1 -complete=dir T :call TabNew(<f-args>)
 command -nargs=1 -complete=customlist,nerdtree#completeBookmarks B :call TabNewBookmark(<f-args>)
 command -nargs=0 OpenNERDTree :call OpenNERDTree()
+" }}}
index 31dec9f2dcc479d08073d6341850208fde7b273e..75d59cbce66bf56c70e15db9a84b312bf8a55821 100644 (file)
@@ -1,4 +1,4 @@
-" session_workarounds.vim - Session restoration workarounds
+" session_workarounds.vim - Session restoration workarounds {{{
 "
 " Author: Silvio Rhatto <rhatto@riseup.net>
 "
index 631d4936b834c9b5a8001b31085318ad7caf88aa..2dbdd789ede83b929a5db00504f5410c34653945 100644 (file)
@@ -1,27 +1,29 @@
-" ui.vim - UI customization
+" ui.vim - UI customization {{{
 "
 " Author: Silvio Rhatto <rhatto@riseup.net>
 
-" Status and tab lines
+" Status and tab lines {{{
 set laststatus=2  " Always display the statusline in all windows
 set showtabline=2 " Always display the tabline, even if there is only one tab
 set noshowmode    " Hide the default mode text (e.g. -- INSERT -- below the statusline)
+" }}}
 
-" Powerline
+" Powerline {{{
 "python from powerline.vim import setup as powerline_setup
 "python powerline_setup()
 "python del powerline_setup
-"
+" }}}
 
-" Airline
+" Airline {{{
 if $WINDOWID != ""
   let g:airline_powerline_fonts=1
   let g:airline#extensions#tabline#enabled=1
 else
   let g:loaded_airline = 1
 endif
+" }}}
 
-" Color scheme
+" Color scheme {{{
 "colorscheme github
 "colorscheme solarized
 "colorscheme gentooish
@@ -36,3 +38,4 @@ if $WINDOWID != ""
 else
   colorscheme zenburn
 endif
+" }}}
index b602af1be28abdf29a7b103cabc54e7d6e5da848..af0ce01e4b3642896e8634be77c671ef9d9020b4 100644 (file)
@@ -1,20 +1,22 @@
-" window_title.vim - Window title handling
+" window_title.vim - Window title handling {{{
 "
 " Author: Silvio Rhatto <rhatto@riseup.net>
 
-" Basic settings
+" Basic settings {{{
 set title
 set titleold="terminal"
 set titlestring=vim:\ %F
+" }}}
 
-" Handling titles when vim is embedded in specific programs
+" Handling titles when vim is embedded in specific programs {{{
 augroup vimleave
   autocmd!
   au VimLeave *mutt/*   silent call ResetTitle("mutt")
   au VimLeave *remind/* silent call ResetTitle("calendar")
 augroup END
+" }}}
 
-" Reset window titles
+" Reset window titles {{{
 "
 " Thanks to http://stackoverflow.com/questions/1673649/vimrc-action-onclose
 function! ResetTitle(title)
@@ -25,3 +27,4 @@ function! ResetTitle(title)
   "exec ":!echo -e '\033kbash\033\\'\<CR>"
   exec ":!xtitle -q " a:title
 endfunction
+" }}}
index 8989a1fa2b2ab269f74de7a89a55f18d12172021..bb47f89bcf5493c0f250f967cc36b3ccdeafaf59 100644 (file)
@@ -1,4 +1,4 @@
-" VIM configuration
+" VIM configuration {{{
 
 " Basic options {{{
 syn on