Skip to content

Blog#

vim初识

本文梳理了 vim 的配置文件及环境变量以及使用 vim 打开文件和编辑文件的基础操作。

vim键位

在 vim 底行模式输入 :h key-notation 可以查看 vimdoc 的标记体例(intro.txt)。

本文包括给程式设计师的Vim入门图解说明、Vi/Vim 键盘图等 Cheat-Sheet。

vim参考

Mac OS X下推荐原生vim

macOS 自带的 Terminal + screen + vim

Terminal 是代替 iTerm2,screen 是代替 tmux ,vim 是代替 MacVim。

至于 shell 用的是默认的 bash(代替 zsh,或者 fishshell),screen 和 vim 的配置都是默认的。

关于 vim 的插件管理,可选 Vundle.vim

C++ Data Types

Every name and every expression has a type that determines the operations that may be performed on it.

Types built out of the built-in types using C++'s abstraction mechanisms are called user-defined types. They are referred to as structures, classes and enumerations.

C Data Types

A C program, whatever its size, consists of functions and variables. A function contains statements that specify the computing operations to be done, and variables store values used during the computation.

在 C 程序里,函数(function)就是指令,变量(variable)就是数据。数据类型定义了变量的存储和访问属性,约束了其大小边界(size/boundary)、取值范围(value range)、解释呈现(interpretation/representation)和可操作集(operation set)。

Data Type

The type defines the operations(access or manipulate) that can be done on the data, the meaning of the data, and the way values of that type can be stored.