How to write a VIM color scheme?
Vivify lets you interactively create vim colorschemes with color pickers and previews your scheme using several code samples.
Vivify lets you interactively create vim colorschemes with color pickers and previews your scheme using several code samples.
After @joe’s answer, Jared Parsons created the great VsVim. It’s been featured on Visual Studio Gallery. It’s a ready extension package. I downloaded it, ran the file and it worked out of the box. It’s free, too.
<c-w>gf open in a new tab (Ctrl-w gf) <c-w>f for split window <– this is the answer you are seeking (Ctrl-w f) source: http://vim.wikia.com/wiki/Open_file_under_cursor
As explained here, disable Background Color Erase (BCE) by clearing the t_ut terminal option (run :set t_ut= in Vim and then press Control+L to refresh the terminal’s display) so that color schemes work properly when Vim is used inside tmux and GNU screen. Per the above link, BCE can be set in .vimrc by adding … Read more
Since you use Linux/Unix, you might also be interested in trying out moreutils. It provides a command called vipe, which reads from stdin, lets you edit the text in $EDITOR, and then prints the modified text to stdout. So make sure you set your editor to Vim: export EDITOR=vim And then you can try these … Read more
Try the below command :w !sudo tee % Explanation :w – write !sudo – call shell sudo command tee – the output of write (:w) command is redirected using tee % – current file name More info
Just use Vim’s own sort function. Visually highlight the text (or use a range) and type: :sort n Documentation is available here: http://vim.wikia.com/wiki/Sort_lines Or in Vim itself: :help sort (Edited to reflect an important point of clarification from dash-tom-bang and the reference to Vim’s own help file.)
You can use the command line window. Use q+: to open it. Then you can navigate the window as an ordinary one and yank what you want to yank.
Press 0 to go to the beginning of a line, or ^ to go to the first non-blank character in a line.
You can use (on VIM at least): :set invnumber More Info: :set number Turn line numbers on :set nonumber Turn line numbers off :set invnumber Toggle line numbers :set number! Toggle line numbers :set number& Set option to default value :set number? Show value of option source: http://vim.wikia.com/wiki/Managing_set_options#Boolean_options