:set ff=unix
Source: stackoverflow.com
Showing posts with label Vim. Show all posts
Showing posts with label Vim. Show all posts
Friday, November 03, 2017
Tuesday, September 19, 2017
Disable highlighting links in Vim
By default, Vim underlines the text inside anchor tags, including spaces, e.g.:
Some textTo disable this, create ~/.vim/syntax/html.vim:
" disable the current htmlLink syntax
highlight link htmlLink text
Wednesday, September 13, 2017
Mapping Keys in Mac OS 10.12 Sierra
To map keys in Mac OS 10.12 Sierra, install Karabiner-Elements.
I have a UK keyboard but am used to the US layout, so I've changed the section symbol § for the grave symbol `.
Being a vim user, I also like having
I have a UK keyboard but am used to the US layout, so I've changed the section symbol § for the grave symbol `.
Being a vim user, I also like having
- the esc key next to the shift key
- the right command key act as a control key
Monday, September 04, 2017
Hide vim swap files in vim browser
While browsing files with vim, e.g. by entering the command ":e .", you might see a lot of swap files (*.swp, *.sw?) if you're using buffers. To hide them:
:let g:netrw_list_hide= '.*\.sw\w$'
Friday, August 18, 2017
My temporary development environment
Here is how I set up my tools on a computer I'm temporarily using, such as one at the library.
https://github.com
Putty
- Download putty from www.chiark.greenend.org.uk
- Putty > Window > Colours > ANSI Blue > Red: 60, Green: 60, Blue: 255
- Putty > Session > Default Settings > Save
- Save a new session with the following set:
- Session > Host Name
- Connections > Data > Auto-login username.
Vim
~/.vimrc:syntax enableNote: Superseded by Vim for Python, which is more comprehensive.
set ic
set expandtab shiftwidth=4 smarttab autoindent
Screen
~/.screenrc:shell -$SHELL
termcapinfo * ti@:te@
startup_message off
Bash
~/.bash_profile# EDITOR
export EDITOR=vim
Websites
https://www.blogger.com for note takinghttps://github.com
Subscribe to:
Posts (Atom)