Vim
Because of the new working environment, I cannot use my favourite customised Emacs to work. So, I have to adapt with the new text editor. Luckily, vim is available in the remote server. That means I can use SSH to run the vim. And, even Emacs is available, I feel difficult to customise and install the packages I need, because I don’t have experience installing Emacs’ packages using text-based UI. (But if it is available, I may make a try.)
On the other hand, vim is a little different. vim is more tend to text-based UI, though there is a GUI version called GVim. In order to familiarise with vim, I also did some customisation on it, especially the key binding (hotkey) which is, totally not user-friendly by default. So, I share my ~/.vimrc with this post.
[code] :set tabstop=4 ai ic wrap lbr showcmd :set shiftwidth=4 :set expandtab :set autoread :set list :set listchars=eol:↵,tab:→·,space:⋅ :set whichwrap+=<,>,h,l,[,] “:set nu :set display+=lastline :colorscheme ron
:filetype plugin on :syntax on
“Navigate vmap gj vmap gk
“This will be overridden by YouCompleteMe, so need to have alternave solution imap gj imap gk imap gj imap gk nmap gj nmap gk
“Select nmap v nmap v nmap v nmap v nmap v nmap v imap v imap v imap v imap v imap v imap v vmap vmap vmap vmap vmap vmap
“Remap the delete key, so that will not override the register for pasting vmap “_x vmap “_x
“For the characters like newline (if shown with list) highlight NonText guifg=#333333 guibg=#000000 ctermfg=darkgrey “For special key like whitespace and tab highlight SpecialKey guifg=#333333 guibg=#000000 ctermfg=darkgrey [/code]
[caption id=“attachment_1280” align=“aligncenter” width=“300”]
Best ever text editors: (g)vim and emacs[/caption]