aboutsummaryrefslogtreecommitdiff
path: root/vim.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-30 01:06:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-30 01:06:32 -0300
commit6da0eb60ce8435917e126006b9506cbcd31b6ff0 (patch)
treef7189dbd5ed6076b7138974d2b5742f191ce7152 /vim.dot.link
parentc0c227d51a3caf5502eac6bd65ab01117f12d29a (diff)
downloadvim-6da0eb60ce8435917e126006b9506cbcd31b6ff0.tar.gz
vim-6da0eb60ce8435917e126006b9506cbcd31b6ff0.tar.bz2
Feat: additional folding markers
Diffstat (limited to 'vim.dot.link')
-rw-r--r--vim.dot.link/filetype.vim2
-rw-r--r--vim.dot.link/plugin/auto_file.vim2
-rw-r--r--vim.dot.link/plugin/key_mappings.vim3
-rw-r--r--vim.dot.link/plugin/lib.vim8
-rw-r--r--vim.dot.link/plugin/nerdtree_customizations.vim15
-rw-r--r--vim.dot.link/plugin/session_workarounds.vim2
-rw-r--r--vim.dot.link/plugin/ui.vim15
-rw-r--r--vim.dot.link/plugin/window_title.vim11
8 files changed, 39 insertions, 19 deletions
diff --git a/vim.dot.link/filetype.vim b/vim.dot.link/filetype.vim
index e75d2e0..79e09ab 100644
--- a/vim.dot.link/filetype.vim
+++ b/vim.dot.link/filetype.vim
@@ -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")
diff --git a/vim.dot.link/plugin/auto_file.vim b/vim.dot.link/plugin/auto_file.vim
index 72e782f..2d46efc 100644
--- a/vim.dot.link/plugin/auto_file.vim
+++ b/vim.dot.link/plugin/auto_file.vim
@@ -1,4 +1,4 @@
-" auto_file.vim - Automatically file reading, saving; directory changer.
+" auto_file.vim - Automatically file reading, saving; directory change {{{
" Autoread {{{
"
diff --git a/vim.dot.link/plugin/key_mappings.vim b/vim.dot.link/plugin/key_mappings.vim
index 0c8bfba..ceb1a51 100644
--- a/vim.dot.link/plugin/key_mappings.vim
+++ b/vim.dot.link/plugin/key_mappings.vim
@@ -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>
" }}}
+"
diff --git a/vim.dot.link/plugin/lib.vim b/vim.dot.link/plugin/lib.vim
index 9e7b689..f1b2a30 100644
--- a/vim.dot.link/plugin/lib.vim
+++ b/vim.dot.link/plugin/lib.vim
@@ -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()
+" }}}
diff --git a/vim.dot.link/plugin/nerdtree_customizations.vim b/vim.dot.link/plugin/nerdtree_customizations.vim
index f2e42ec..95b50f3 100644
--- a/vim.dot.link/plugin/nerdtree_customizations.vim
+++ b/vim.dot.link/plugin/nerdtree_customizations.vim
@@ -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()
+" }}}
diff --git a/vim.dot.link/plugin/session_workarounds.vim b/vim.dot.link/plugin/session_workarounds.vim
index 31dec9f..75d59cb 100644
--- a/vim.dot.link/plugin/session_workarounds.vim
+++ b/vim.dot.link/plugin/session_workarounds.vim
@@ -1,4 +1,4 @@
-" session_workarounds.vim - Session restoration workarounds
+" session_workarounds.vim - Session restoration workarounds {{{
"
" Author: Silvio Rhatto <rhatto@riseup.net>
"
diff --git a/vim.dot.link/plugin/ui.vim b/vim.dot.link/plugin/ui.vim
index 631d493..2dbdd78 100644
--- a/vim.dot.link/plugin/ui.vim
+++ b/vim.dot.link/plugin/ui.vim
@@ -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
+" }}}
diff --git a/vim.dot.link/plugin/window_title.vim b/vim.dot.link/plugin/window_title.vim
index b602af1..af0ce01 100644
--- a/vim.dot.link/plugin/window_title.vim
+++ b/vim.dot.link/plugin/window_title.vim
@@ -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
+" }}}