Pario TechnoBlob
About
Posts
Tag: vim
Indent/format an entire file using vim
You can format/indent an entire file using the vim editor and the gg=G command. gg - Goto the beginning of the file = - apply indentation G - till end of file If you decide...
Switch off annoying bell/beep in xterm
My colleagues don’t like all the bell/beep sounds I make when I’m working in a xterm through my putty ssh client. To please them I’ve added this line to /etc/inputrc to...
Make arrowkeys in Debian vi work
Put this line in your ~/.vimrc set esckeys Another alternative is to install vim aptitude install vim And do the necessary changes on the settings file /etc/vim/vimrc
vim search and replace text
Different ways of replacing text etc. Replace every occurrence of pattern1 (pat1) with pat2 :g/pat1/s//pat2/g Replace every occurence of pattern1 (pat1) with a newline...
««
«
1
2
»
»»