BOOKS LITERATURE AND LANGUAGE
Writing
# Vim for Writing Vim is my primary tool for writing, it is great not just for programming, but also for writing documentation, blog posts, or whatever you need. See the Vimwiki section for how to use Vim for all your notes. ## Spellcheck See
:help spell Vim has a built-in spellcheck, by default it is off. You can turn it on using :setlocal spell. To turn it off again, use :set nospellSOFTWARE DEVELOPMENT AND APPLICATIONS
Windows
# Windows As mentioned above windows are viewports into buffers. So, a window is a different editing pane. There is always one main window, but you can also have multiple windows at the same time. Multiple windows can be the same or different buffers, so you can have the same buffer open in two different windows.
:split Horizontal split, current buffer :vsplit Vertical split, current buffer :new Horizontal split, new buffer :vnew Vertical split, new buffer ctrl-w s Horizontal split current buffer ctrl-w v Vertical split current buffer ctrl-w n Horizontal split, new buffer ctrl-w q Quit window, closes buffer ctrl-w c Close window, leave buffer ctrl-w o or :only Only one window, closes down to just one To navigate between open windows, use ctrl-w [hjkl] or ctrl-w [arrows] mapping to the same directions used to navigate.MEDIA JOURNALISM AND INTERNET CULTURE
VimWiki
# VimWiki: Personal Knowledge Management in Vim VimWiki transforms Vim (Neovim) into a powerful personal knowledge management system. VimWiki provides an instant-access note taking environment where you can capture thoughts, maintain daily journals, track tasks, and build an interconnected web of knowledge, all without leaving your editor. 馃摑 Yes, you can take notes in any text editor. VimWiki provides shortcuts, and a define spaces for daily notes, and a scratch area always ready to write. The killer feature? Daily notes just two keystrokes away. In the middle of coding session and want to jot something down,
<Leader>w<Leader>w instantly opens today鈥檚 journal entry. Same app, don鈥檛 have to think of what file, just quick note taking.VEHICLES AND PASSENGER TRANSPORTATION
Vectors
# Vectors The common array type in Rust is called a vector, defined as
Vec<T> with T representing any type. The vector type is growable, which is why it differs from the fixed-size array type. ## Initialize Vectors rs let mut v: Vec<i32> = Vec::new(); v.push(1); v.push(2); Note: The variable must be declared as mutable if it is to be changed. If Rust can figure it out, it will automatically create the type based on the full program, so you don鈥檛 always have to specify the type. The following is equivalent to the above:VISUAL ARTS AND DESIGN
The Tao of Vim
# The Tao of Vim The underlying principle of Vim is the operator-motion pair. Think of Vim as a language, the operator and motion are the verbs and nouns that define the action on a subject. For example, deleting a line. Delete is the action, and a line is the subject. For Vim,
d is the delete operator, and _ is the line motion. So, typing d_ deletes a line. This is the essence of Vim. Instead of trying to memorize hundreds of commands, learn the verbs and nouns that make up the language, and then combine together. See operators and motions pages for more.