The cooperativity effects on both the electronic energy and NMR indirect nuclear spin-spin coupling constants J of the linear complexes (HCN)n and (HNC)n (n = 1-6) are discussed. The geometries of the complexes were optimized at the MP2 level by using the cc-pVTZ basis sets. The spin-spin coupling constants were calculated at the level of the second-order polarization propagator approximation with use of the local dense basis set scheme based on the cc-pVTZ-J basis sets. We find strong correlations in the patterns of different properties such as interaction energy, hydrogen bond distances, and spin-spin coupling constants for both series of compounds. The intramolecular spin-spin couplings are with two exceptions dominated by the Fermi contact (FC) mechanism, while the FC term is the only nonvanishing contribution for the intermolecular couplings. The latter do not follow the Dirac vector model and are important only between nearest neighbors.