Compare commits

..

3 Commits

4 changed files with 65 additions and 26 deletions

View File

@@ -1,20 +1,14 @@
:insert
#!/usr/bin/env python
#===============================================================================
#
# FILE:
#
# USAGE:
#
# DESCRIPTION:
#
# OPTIONS:
# REQUIREMENTS:
# NOTES:
# AUTHOR:
# ORGANIZATION:
# CREATED:
# REVISION:
#===============================================================================
set -o nounset # Treat unset variables as an error

View File

@@ -5,12 +5,10 @@
# FILE:
# USAGE:
# DESCRIPTION:
# OPTIONS:
# REQUIREMENTS:
# NOTES:
# AUTHOR: C Hawley
# CREATED:
# REVISION:
#
#===============================================================================

42
.vim/vim-keys.md Normal file
View File

@@ -0,0 +1,42 @@
# /home/phansible/vim-keys
## Highlights
`<F10>` - turn off spellcheck highlights
`<leader></>` - turn off search highlight
`<Leader>c` - toggle row/column cursor
## Buffers & Panes
`<ctrl>-H` - to move to previous BUFFER
`<ctrl>-L` - to move to next BUFFER
`<ctrl>-J` - to move to lower PANE
`<ctrl>-K` - to move to upper PANE
`<leader>-s` - to save buffer
`<leader>-c` - to close buffer
`<leader>-x` - bring up the copy buffer
`<F5>` - refresh buffer
## FZF
`<leader>-f` - open files
`;` - open buffers
## Text bubbling (http://vimcasts.org/episodes/bubbling-text/)
After text selection (`<ctrl-v>`)
`<ctrl>-k` - bubble up
`<ctrl>-j` - bubble down
## Date and Time stamps
`<F2>` - insert %Y-%m-%d %H:%M:%S
`<F3>` - insert %Y-%m-%d %a
`<F4>` - insert %H:%M
---
`<ctrl>-p` - auto-complete spelling suggestions

41
.vimrc
View File

@@ -138,7 +138,7 @@ set statusline+=\ %P " percent through file
" => Keymaps: Doing more things at once
" turn off search highlight
nnoremap <leader><space> :nohls <enter>
nnoremap <leader><C-_> :nohls <enter>
" toggle row/column cursor
nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>
@@ -197,16 +197,32 @@ imap <F4> <C-R>=strftime("%H:%M")<CR>
" ---------------------------------------------------------------------------------------------------------------------
" ---------------------------------------------------------------------------------------------------------------------
" ==> Spellcheck: only certain file types https://robots.thoughtbot.com/vim-spell-checking
" turn off for files with no extension
autocmd BufRead,BufNewFile * setlocal nospell
" turn off for files with any extension
autocmd BufRead,BufNewFile *.* setlocal nospell
" turn on for markdown files
autocmd BufRead,BufNewFile *.md setlocal spell
" turn on for text files
autocmd BufRead,BufNewFile *.txt setlocal spell
" ==> Spellcheck
" Horrible colors! I hate spellchecker's red highlight, so I changed it
" (http://stackoverflow.com/questions/6008921/how-do-i-change-the-highlight-style-in-vim-spellcheck)
" Vim Colors: (http://alvinalexander.com/linux/vi-vim-editor-color-scheme-syntax)
set spell spelllang=en_us
" Toggle spell check with F10
nnoremap <F10> :setlocal spell! spelllang=en_us<CR>
set spell spelllang=en_us
" Save custom dictionary in nextcloud so it's available on all machines
" set spellfile=/home/chawley/nextcloud-overlook/notes/system/en.utf-8.add
" auto-complete spelling suggestions with <ctrl-p>
set complete+=kspell
" Horrible colors! I hate spellchecker's red highlight, so I changed it
" (http://stackoverflow.com/questions/6008921/how-do-i-change-the-highlight-style-in-vim-spellcheck)
" Vim Colors: (http://alvinalexander.com/linux/vi-vim-editor-color-scheme-syntax)
hi clear SpellBad
hi clear SpellCap
hi clear SpellErrors
@@ -215,17 +231,6 @@ hi clear SpellRare
hi SpellBad cterm=underline ctermbg=black ctermfg=red
hi SpellCap cterm=underline ctermbg=black ctermfg=red
" ---------------------------------------------------------------------------------------------------------------------
" ==> Spellcheck: only certain file types https://robots.thoughtbot.com/vim-spell-checking
" turn off for files with no extension
autocmd BufRead,BufNewFile * setlocal nospell
" turn off for files with any extension
autocmd BufRead,BufNewFile *.* setlocal nospell
" turn on for markdown files
autocmd BufRead,BufNewFile *.md setlocal spell
" turn on for text files
autocmd BufRead,BufNewFile *.txt setlocal spell
" ---------------------------------------------------------------------------------------------------------------------
" ==> Snippets