set listchars " Show special characters such as EOL
set fileformats=unix " Carriage return `\r` will be displayed as `^M`
:e ++f=unix " Reopen DOS-formatted file as Unix-formatted file in Vim -
:set dy=uhex " Display `^M` in hex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader="," | |
nnoremap \ , | |
nnoremap H 0 | |
nnoremap L $ | |
nnoremap <leader>c /--<CR>v$u | |
nnoremap <C-l> :nohlsearch<CR> | |
set smartindent | |
set ignorecase |
:shell " Start a shell - return to vim with exit
:!{cmd} " Execute command in shell
:read !{cmd} " Execute command in shell and read STDOUT into buffer
:[range]write !{cmd} " Execute command in shell with specific lines as STDIN
:[range]!{filter} " Run range of lines through external program
NewerOlder