background preloader

100 Vim commands every programmer should know

100 Vim commands every programmer should know

The Best Linux Applications of 2013 2013 – What A Year, Right? This time last year we knew nothing of Ubuntu Touch; Canonical attempting to raise $32 million for a cutting-edge smartphone would’ve sounded insane; Mir was a space station while Wayland was the future; and as far as Saucy Salamanders and Trusty Tahrs are concerned, they were nothing but adjunct words on the pages of untroubled thesaurus. It’s been a busy year. Canonical continue to stride forwards towards a converged future for the OS, while an estimated 25 million people continue to use the regular desktop version for their day-to-day computing needs. But key to both experiences are apps. We’ve opted to exclude ‘obvious’ choices like Firefox, Chrome, LibreOffice and Steam (because we all know they’re awesome anyway) to highlight lesser-known apps and utilities that, this year, made the desktop experience all the more awesome. What did we pick? Geary Those who insist that the days of desktop mail clients are over are fast being made to eat their words by Yorba.

VIM Vim es un editor de texto altamente configurable desarrollado para hacer más eficiente la edición de texto. Es una versión mejorada del editor de texto vi distribuido con la mayoría de sistemas Unix. Vim es usualmente llamado «el editor del programador», y es tan bueno para la programación que muchos lo consideran como un IDE completo. Aunque, no es solo para programadores. Características Características modernas con respecto a vi: Múltiples niveles para deshacer. Características para usuarios avanzados: Formateo de texto. Características para rendimiento en programación: Edita-compila-edita más velozmente. Más información en la FAQ oficial de vim (en inglés). Instalación Mediante repositorios Instala el paquete vim del repositorio main de Ubuntu. Manualmente Vim está disponible para muchos sistemas y existen muchas versiones. Uso Inicio Para inicia vim desde terminal, ejecuta el siguiente comando: vim Modos vi (y por lo tanto vim) se caracteriza por disponer de distintos modos para trabajar.

Vim Regular Expressions 101 21 Excellent Open Source Linux Text Editors A text editor is software used for editing plain text files. It has many different uses such as modifying system configuration files, writing programming language source code, jotting down thoughts, or even making a grocery list. Whatever the level of sophistication of the editor, they typically have a common set of functionality, such as searching/replacing text, formatting text, undo/redo, importing files, as well as moving text within the file. However, many of the editors included in this article are feature-rich, and can be further extended using plugins and libraries. We previously published an article on the best open source editors in 2008. To provide an insight into the quality of software that's available, we've compiled a list of 21 high quality Linux text editors. Now, let's explore the 21 editors at hand. Return to our complete collection of Group Tests, identifying the finest Linux software.

Datavu: Useful Unix commands for exploring data While dealing with big genetic data sets I often got stuck with limitation of programming languages in terms of reading big files. Also sometimes it is not convenient to load the data file in Python or R in order to perform few basic checks and exploratory analysis. Unix commands are pretty handy in these scenarios and often takes significantly less time in execution. Lets consider movie data set from some parallel universe (with random values) for this assignment. With few duplicate records Lets start with few basic examples, Check column names of file head -1 movies.csv We can use cat to display the file but we are interested in column names which is only first row of the file. Check number of records in the file wc -l movies.csv The command wc gives us number of characters, number of words and number of lines in a file. Check 50th record head -50 movies.csv | tail -1 The operator | is called pipe and it will forward the output of first command as input of second command. Hint:

Vi Vim Tips And Tricks - Part 3 This is a guest post written by SathiyaMoorthy You can perform automatic word completion in Vim using Ctrl-x in insert or append mode. By typing the first few characters of a word you can get the whole word either from a dictionary, or a thesaurus, or even the words that are already present on the file that you are editing. This article explains how to perform following operations with examples and screen shots: Word / pattern completion Line completion Dictionary word completion File name completionFilling up words with similar meaning (Thesaurus word completion). (more…) This is a guest post written by SathiyaMoorthy. Adding file header Adding function/frame comment Including default code snippet Performing syntax check Reading documentation about a function Converting a code block to comment, and vice versa The Perl-Support Vim Plugin – Perl-IDE offers easiest way to do all of the above, saving lot of time and keystrokes. This is a guest post written by Lakshmanan G.

Easy note taking in Vim / code / vim / notes Ohloh: Mostly written in Vim Script, 2411 lines of code, 5 contributors in last 12 monthsGitHub: Watched by 201 people, most recent update was 8 months agoVim Online: Rated 358, downloaded 4839 times The vim-notes plug-in for the Vim text editor makes it easy to manage your notes in Vim: # Install & usage Please note that the vim-notes plug-in requires my vim-misc plug-in which is separately distributed. Unzip the most recent ZIP archives of the vim-notes and vim-misc plug-ins inside your Vim profile directory (usually this is ~/.vim on UNIX and %USERPROFILE%\vimfiles on Windows), restart Vim and execute the command :helptags ~/.vim/doc (use :helptags ~\vimfiles\doc instead on Windows). If you prefer you can also use Pathogen, Vundle or a similar tool to install & update the vim-notes and vim-misc plug-ins using a local clone of the git repository. # Options :let g:notes_directories = ['~/Documents/Notes', '~/Dropbox/Shared Notes'] # Backwards compatibility

How To Read CPUID Instruction For Each CPU on Linux With x86info and cpuid Commands Is there a CPU-Z like a freeware/open source software that detects the central processing unit (CPU) of a modern personal computer in Linux operating system? How can I get detailed information about the CPU(s) gathered from the CPUID instruction, including the exact model of CPU(s) on Linux operating system? There are three programs on Linux operating system that can provide CPUID information and these tools are useful to find out if specific advanced features such as virtualization, extended page tables, encryption and more: lscpu command - Show information on CPU architecture.x86info command - Show x86 CPU diagnostics.cpuid command - Dump CPUID information for each CPU. x86info x86info is a program which displays a range of information about the CPUs present in an x86 system. Install x86info on Debian / Ubuntu Linux $ sudo apt-get install x86info Install x86info on Fedora Linux $ sudo dnf install x86info Install x86info on RHEL/SL/CentOS Linux $ sudo yum install x86info Examples # x86info -r

Vi and Vim Autocommand: 3 Steps to Add Custom Header To Your File Automatically This is a guest post written by Lakshmanan G. This article is part of the ongoing Vi / Vim Tips & Tricks series. Using autocommand feature in Vi / Vim, you can specify some Vim commands to be executed automatically while reading or writing a file, or while entering/leaving a buffer/window, or while exiting Vim. In this article, using 3 simple steps, let us review how to use this powerful autocmd feature of Vim to create a header section inside a file (for example, header in a C programming code) with file name, creation date, last modified date/time automatically populated when you open a file in vi.Vim autocmd syntax: autocmd {event} {pattern} {cmd} Events: There are more than 40 autocmd events. BufNewFile - Starting to edit a file that doesn't exist. Most of the developers want some default header for their programs. /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. * File Name : 1.c * Purpose : * Creation Date : 22-12-2008 * Last Modified : Mon 22 Dec 2008 10:36:49 PM PST * Created By : _